home *** CD-ROM | disk | FTP | other *** search
- #!/usr/bin/perl
-
- # Access the environment variable by name
-
- $gateway_interface = $ENV{'GATEWAY_INTERFACE'};
-
- # Send the output mime type to the server to know what output to handle
-
- print "Content-type: text/plain\n\n";
-
- # Split the information into name/revision strings
- # by splitting on the slash character.
-
- ($name,$revision) = split('/', $gateway_interface, 2);
-
- # Test and print the information if defined.
-
- if ($name && $revision)
- {
- print "Gateway Interface: name = $name revision = $revision\n";
- }
- else
- {
- print "Gateway interface is undefined or invalid!\n";
- }
-
- #
- # end of testgway.pl
- #
-